func (group *RouterGroup) POST(relativePath string, handlers ...HandlerFunc) IRoutes {
return group.handle(http.MethodPost, relativePath, handlers)
}

func (group *RouterGroup) GET(relativePath string, handlers ...HandlerFunc) IRoutes {
return group.handle(http.MethodGet, relativePath, handlers)
}



func (group *RouterGroup) handle(httpMethod, relativePath string, handlers HandlersChain) IRoutes {
//计算最简洁的相对路径，去除多余符号
absolutePath := group.calculateAbsolutePath(relativePath)
//合并处理函数，就是讲我们自己编写的处理函数与中间件函数连接成一个处理链，
//这样在路由匹配时不仅会调用我们编写的函数，也会调用中间件函数
handlers = group.combineHandlers(handlers)
//像向engine对象添加路由信息
group.engine.addRoute(httpMethod, absolutePath, handlers)

return group.returnObj()
}
